home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Games Collection 1
/
software vault.zip
/
software vault
/
CDR02
/
DCGAMES1.ZIP
/
NEWGAME.ZIP
/
TELLER.SCR
< prev
next >
Wrap
Text File
|
1992-09-08
|
936b
|
41 lines
!
! Default Fortune Teller script..
!
! (c) DC Software, 1992
!
!------------------------------------------------------------------------!
:@TALK ! Talk to the character !
!------------------------------------------------------------------------!
! First, say hello.. !
if NPC.V0 > 0 then
writeln( "Hello ", player.name, ". What brings you back?" );
else
writeln( "How may I help you?" );
endif;
! Now, set some variables..
NPC.V0 = 1; ! From know on, remember we've been here
L1 = select$( "Tell Fortune", npc.value, "Leave", -1 );
if L1 <> 0 then
if NPC.V0 > 0 then
writeln( "As you wish.." );
else
writeln( "Fine, but you may live to regret it.." );
endif;
STOP;
endif;
if npc.value > group.gold then
writeln( "You don't have enough money.." );
STOP;
endif;
dec( group.gold, npc.value );
readtext( npc.text );
STOP;